Haskell Language Server:インストール
Prerequisites
For standalone .hs/.lhs files, ghc must be installed and on the PATH. The easiest way to install it is with ghcup or Chocolatey on Windows.
For Cabal based projects, both ghc and cabal-install must be installed and on the PATH. It can also be installed with ghcup or Chocolatey on Windows.
For Stack based projects, stack must be installed and on the PATH. 設定
code:~/.stack/config.yaml
ghc-options:
"$everything": -haddock
これがおすすめ
ソースからインストール
code:terminal
cd haskell-language-server
stack ./install.hs help
あとは指示に従って
formula次第だから選べないけど……
code:terminal
% brew install haskell-language-server
うまくいけばこんな感じ
code:terminal
% brew list haskell-language-server
/usr/local/Cellar/haskell-language-server/1.0.0_1/bin/haskell-language-server-8.10.4
/usr/local/Cellar/haskell-language-server/1.0.0_1/bin/haskell-language-server-8.6.5
/usr/local/Cellar/haskell-language-server/1.0.0_1/bin/haskell-language-server-8.8.4
/usr/local/Cellar/haskell-language-server/1.0.0_1/bin/haskell-language-server-wrapper
たぶんhaskell-language-server-wrapperを使えば最新
code:terminal
% haskell-language-server-wrapper --version
haskell-language-server version: 1.0.0.0 (GHC: 8.10.4) (PATH: /usr/local/Cellar/haskell-language-server/1.0.0_1/bin/haskell-language-server-wrapper)
% haskell-language-server-wrapper